package com.unc.allergyex.objects;

import com.google.gson.annotations.SerializedName;

/**
 * Object that stores a version number and name for versioned objects retrieved from the server and stored locally on the device.
 * This object is used in the {@link Updater} to pass this metadata about versioned objects between methods.
 * 
 * @author Ryan Miller
 *
 */

public class VersionNumber {
	
	@SerializedName("name")
	private String name;
	
	@SerializedName("value")
	private String version;
	
	public VersionNumber(String newName, String newVersion){
		name = newName;
		version = newVersion;
	}
	
	public void setVersion(String newVersion){
		version = newVersion;
	}
	
	public String getVersion(){
		return version;
	}
	
	public void setName(String newName){
		name = newName;
	}
	
	public String getName(){
		return name;
	}
	
	
}
